import {
	upLoadFile
} from '@/util/api.js'
import {
	request
} from '@/util/api.js'

// 单张图片上传
export const uploadImage = (event) => {
	return upLoadFile({
		url: 'model/common/layer_upload_img',
		event
		// formData: {
		// file: event.file
		// }
	})
}

// orc图片识别
export const businessCardImg = (event) => {
	return upLoadFile({
		url: 'api/business/card_img',
		event,
		formData: {
			type: event.type,
			// file: event.file,
			token: event.token
		}
	})
}

// 页面跳转插入广告
export const advertisementSlot = (data) => {
	return request({
		url: 'api/adsense/advertisement_slot',
		method: 'get',
		data
	})
}

// 消息提醒
export const businessReceiving = (data) => {
	return request({
		url: 'api/business/receiving',
		method: 'post',
		data
	})
}

// 控制是否展示关注公众号弹窗
export const bulletBox = () => {
	return request({
		url: 'api/orcode/bullet_box',
		method: 'get'
	})
}